import React from 'react';
import './dots.less';
export default function Lunbodots(props) {
  return (
    <>
      <ul className="dots">
        {props.item.map((item, index) => (
          <li
            className={props.index1 === index ? 'active' : ''}
            onClick={() => props.myfcous(index)}
            key={index}
          >
            {index + 1}
          </li>
        ))}
      </ul>
    </>
  );
}
